package com.example.firstproject.entity;

import com.example.firstproject.vo.StudentVO;
import lombok.Data;

@Data
public class Student {

    private String studentNumber;

    private String username;

    private String password;

    private String studentName;

    private String studentMajor;

    private String studentClass;

    public Student(){}

    public Student(StudentVO studentVO){
        this.username = studentVO.getUsername();
        this.password = studentVO.getPassword();
        this.studentNumber = studentVO.getStudentNumber();
        this.studentName = studentVO.getStudentName();
        this.studentClass = studentVO.getStudentClass();
        this.studentMajor = studentVO.getStudentMajor();

    }
}
